<?php
class Recipe extends Model
{
	public function categories() {
        return $this->has_many_through('Category');
    }
    public function ingredients() {
        return $this->has_many('Ingredient');
    }
    public function steps() {
        return $this->has_many('Step');
    }
    public function images() {
    	return $this->has_many_through('Image');
    }
    public function owner() {
        return $this->belongs_to('User');
    }
}